import request2 from '@/utils/request2'

export function getCate(params) {
  return request2({
    url: '/old/NewsCate/index',
    method: 'get',
    params
  })
}

export function addCate(data) {
  return request2({
    url: '/old/NewsCate/create',
    method: 'post',
    data
  })
}

export function delCate(id) {
  return request2({
    url: '/old/NewsCate/delete',
    method: 'get',
    params: { id: id }
  })
}

export function editCate(data) {
  return request2({
    url: '/old/NewsCate/edit',
    method: 'post',
    data
  })
}
